package main;

import java.util.List;

import cn.ideaframe.core.util.DataTable;

import com.itextpdf.text.PageSize;
import com.itextpdf.text.Rectangle;

public class DocumentInfo {
	/**
	 * 文档大小
	 */
	Rectangle pageSize;
	/***
	 * 边距
	 */
	float leftMargin;
	float rightMargin;
	float topMargin;
	float bottomMargin;
	
	String fontpath;
	
	/*
	 * 是否横版
	 */
	boolean isHor;
	/*
	 * 是否加空白行
	 */
	boolean isBlankRow;
	/*
	 * 标题
	 */
	String title;
	float titleTop;
	float titleSize;
	float titleHeight;
	
	List<Integer> footerColumns;	
	List<HeaderFooterModel> footerModels;
	List<Integer> headerColumns;
	List<HeaderFooterModel> headerModels;
	float footerBottom;
	float headerTop;
	
	/*
	 * 头尾行高
	 */
	float hFHeight;
	/*
	 * 行高
	 */
	float rowHeight;
	
	float defFontSize;
	
	
	
	List<HeaderEx> headerlst;
	List<ColumnEx> columnlst;
	List<DetailHeaderEx> detailHeaderlst;
	float[] widths;
	
	String pagecon;
	String headercon;
	String footercon;
	String titlecon; 

	int headerRow;
	
	public Rectangle getPageSize() {
		return pageSize;
	}

	public void setPageSize(Rectangle pageSize) {
		this.pageSize = pageSize;
	}

	public float getLeftMargin() {
		return leftMargin;
	}

	public void setLeftMargin(float leftMargin) {
		this.leftMargin = leftMargin;
	}

	public float getRightMargin() {
		return rightMargin;
	}

	public void setRightMargin(float rightMargin) {
		this.rightMargin = rightMargin;
	}

	public float getTopMargin() {
		return topMargin;
	}

	public void setTopMargin(float topMargin) {
		this.topMargin = topMargin;
	}

	public float getBottomMargin() {
		return bottomMargin;
	}

	public void setBottomMargin(float bottomMargin) {
		this.bottomMargin = bottomMargin;
	}

	public String getFontpath() {
		return fontpath;
	}

	public void setFontpath(String fontpath) {
		this.fontpath = fontpath;
	}

	public boolean isHor() {
		return isHor;
	}

	public void setHor(boolean isHor) {
		this.isHor = isHor;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public float getTitleTop() {
		return titleTop;
	}

	public void setTitleTop(float titleTop) {
		this.titleTop = titleTop;
	}

	public float getTitleSize() {
		return titleSize;
	}

	public void setTitleSize(float titleSize) {
		this.titleSize = titleSize;
	}

	public List<Integer> getFooterColumns() {
		return footerColumns;
	}

	public void setFooterColumns(List<Integer> footerColumns) {
		this.footerColumns = footerColumns;
	}

	public List<HeaderFooterModel> getFooterModels() {
		return footerModels;
	}

	public void setFooterModels(List<HeaderFooterModel> footerModels) {
		this.footerModels = footerModels;
	}

	public List<Integer> getHeaderColumns() {
		return headerColumns;
	}

	public void setHeaderColumns(List<Integer> headerColumns) {
		this.headerColumns = headerColumns;
	}

	public List<HeaderFooterModel> getHeaderModels() {
		return headerModels;
	}

	public void setHeaderModels(List<HeaderFooterModel> headerModels) {
		this.headerModels = headerModels;
	}

	public float getFooterBottom() {
		return footerBottom;
	}

	public void setFooterBottom(float footerBottom) {
		this.footerBottom = footerBottom;
	}

	public float getHeaderTop() {
		return headerTop;
	}

	public void setHeaderTop(float headerTop) {
		this.headerTop = headerTop;
	}

	public float gethFHeight() {
		return hFHeight;
	}

	public void sethFHeight(float hFHeight) {
		this.hFHeight = hFHeight;
	}

	public float getRowHeight() {
		if(rowHeight<1){
			rowHeight=10;
		}
		return rowHeight;
	}

	public void setRowHeight(float rowHeight) {
		this.rowHeight = rowHeight;
	}

	public float getDefFontSize() {
		if(defFontSize<1){
			defFontSize=8;
		}
		return defFontSize;
	}

	public void setDefFontSize(float defFontSize) {
		this.defFontSize = defFontSize;
	}

	public List<HeaderEx> getHeaderlst() {
		return headerlst;
	}

	public void setHeaderlst(List<HeaderEx> headerlst) {
		this.headerlst = headerlst;
	}

	public List<ColumnEx> getColumnlst() {
		return columnlst;
	}

	public void setColumnlst(List<ColumnEx> columnlst) {
		this.columnlst = columnlst;
	}

	public String getPagecon() {
		return pagecon;
	}

	public void setPagecon(String pagecon) {
		this.pagecon = pagecon;
	}

	public String getHeadercon() {
		return headercon;
	}

	public void setHeadercon(String headercon) {
		this.headercon = headercon;
	}

	public String getFootercon() {
		return footercon;
	}

	public void setFootercon(String footercon) {
		this.footercon = footercon;
	}

	public String getTitlecon() {
		return titlecon;
	}

	public void setTitlecon(String titlecon) {
		this.titlecon = titlecon;
	}

	public float getTitleHeight() {
		return titleHeight;
	}

	public void setTitleHeight(float titleHeight) {
		this.titleHeight = titleHeight;
	}

	public boolean isBlankRow() {
		return isBlankRow;
	}

	public void setBlankRow(boolean isBlankRow) {
		this.isBlankRow = isBlankRow;
	}

	public int getHeaderRow() {
		return headerRow;
	}

	public void setHeaderRow(int headerRow) {
		this.headerRow = headerRow;
	}

	public List<DetailHeaderEx> getDetailHeaderlst() {
		return detailHeaderlst;
	}

	public void setDetailHeaderlst(List<DetailHeaderEx> detailHeaderlst) {
		this.detailHeaderlst = detailHeaderlst;
	}

	public float[] getWidths() {
		return widths;
	}

	public void setWidths(float[] widths) {
		this.widths = widths;
	}
	
}
